package com.boc.langxiang.contract.me;

import android.widget.PopupWindow;

import com.boc.langxiang.contract.BaseView;
import com.boc.langxiang.entity.response.BaseResponse;
import com.boc.langxiang.entity.response.ProductListEntity;
import com.boc.langxiang.presenter.BasePresenter;

import java.util.List;

/**
 * Created by admin on 2016/6/24.
 */
public interface OrdersAllFragmentContract {

    interface View extends BaseView {

        void setBackgroundAlpht(float value);

        void showPopupWindow(android.view.View view, PopupWindow popupWindow);

        void onCancelSureClick(PopupWindow cancelPopupWindow, String id);

        void onCancelGiveUpClick(PopupWindow cancelPopupWindow);

        void getAllOrders(List<ProductListEntity> list);

        void startDetailActivity(String id, String totalPrice, String status);

        void onPay(ProductListEntity productListEntity);

        void onReceiveSureClick(PopupWindow receivePop, String id);

        void onReceiveGiveUpClick(PopupWindow receivePop);

        void cancelOrdersSuccess();

        void startToApplyRefundActivity(String price, String orderid);

        void conFirmReceipt(BaseResponse response);


        void onPaySuccess();

    }

    interface Presenter extends BasePresenter {
        void allorders(String page);

        void cancelOrders(String id);

        void confirmReceipt(String id);
    }
}
